var mongoose = require("mongoose");
var Schema = mongoose.Schema;
var SetupSchema = new Schema({
	_id: {
		type: String,
		default:"sys",
		required: true
	},
	sys_basehost: String,
	sys_webname: String,
	sys_weixin: String,
	sys_qq: String,
	sys_tel:String,
	sys_address:String,
	sys_weibo: String,
    sys_phone: String,
	sys_keywords: String,
	sys_description:String,
	publish:{
		type:Date,
		default:Date.now
	}
});

var Setup = mongoose.model('setup', SetupSchema, 'setup');

module.exports = Setup;